﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace CJGL
{
    public class LoginModel
    {


        [JsonProperty("appid")]
        public string Appid { get => appid; set => appid = value; }
        [JsonProperty("appsecret")]
        public string Appsecret { get => appsecret; set => appsecret = value; }
        [JsonProperty("ttamp")]
        public long Ttamp { get => ttamp; set => ttamp = value; }
        [JsonProperty("sture")]
        public string Sture { get => sture; set => sture = value; }
        [JsonProperty("czuser")]
        public string Czuser { get => czuser; set => czuser = value; }

        private string appid;
        private string appsecret;
        private long ttamp;
        private string sture;
        private string czuser;

    }
    public class ProductRequstModel
    {
        private string token;
        private int page;
        private long ttamp;
        private string sture;
        public string keyword { get; set; }
        [JsonProperty("token")]
        public string Token { get => token; set => token = value; }
        [JsonProperty("page")]
        public int Page { get => page; set => page = value; }
        [JsonProperty("ttamp")]
        public long Ttamp { get => ttamp; set => ttamp = value; }
        [JsonProperty("sture")]
        public string Sture { get => sture; set => sture = value; }
    }
    public class Data
    {
        /// <summary>
        /// 
        /// </summary>
        public string token { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int expire { get; set; }

    }



    public class ReturnModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// 返回成功
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Data data { get; set; }

    }


    public class DataItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int pro_id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string pro_name { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string pro_number { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string pro_piclink { get; set; }

        /// <summary>
        /// Switch 一次性烟弹（口味：香草烟草,马来西亚版）
        /// </summary>
        public string pro_desc { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int pro_typeid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string pro_protypename { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int pro_active { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int pro_addtime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int pro_updatetime { get; set; }

    }



    public class ResProduct
    {
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// 返回成功
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<DataItem> data { get; set; }

    }

    //addrelation 添加关联关系
    public class AddRelationMode
    {
        /// <summary>
        /// 
        /// </summary>
        public string token { get; set; }

        /// <summary>
        /// 返回成功
        /// </summary>
        public long ttamp { get; set; }

        public string sture { get; set; }
        public string bcode { get; set; }
        public int proid { get; set; }
        public int qty { get; set; }
        public string scancodes { get; set; }
        public int scanmode { get; set; }

    }

    //addrelation 添加关联关系
    public class AddRelationRes
    {
 
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// 返回成功
        /// </summary>
        public string msg { get; set; }

    }


    public class ListItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string barcode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int qty { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int proid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string error { get; set; }

    }



    public class RetAddData
    {
        /// <summary>
        /// 
        /// </summary>
        public string bcode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<ListItem> list { get; set; }

    }



    public class AddRoot
    {
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// 提交成功
        /// </summary>
        public string msg { get; set; }

  

    }



}
